package cn.o.api.feign.service.impl;

import cn.o.entity.base.Parameter;
import cn.o.entity.base.Result;
import cn.o.exceptions.CommonException;
import cn.o.exceptions.ExceptionEnum;
import cn.o.api.feign.service.FeignService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description:
 * @Author: Zhou Chenyu
 * @Date: 2018/10/26
 * @Version: V1.0
 * @Modified By:
 * @Modified Date:
 * @Why:
 */
public class FeignServiceHystrix<T> implements FeignService<T> {

    @Override
    public Result create(T t) {
        return new Result(new CommonException(ExceptionEnum.HYSTRIX));
    }

    @Override
    public Result update(T t) {
        return new Result(new CommonException(ExceptionEnum.HYSTRIX));
    }

    @Override
    public Result delete(String id) {
        return new Result(new CommonException(ExceptionEnum.HYSTRIX));
    }

    @Override
    public Result get(String id) {
        return new Result(new CommonException(ExceptionEnum.HYSTRIX));
    }

    @Override
    public Result list(Parameter parameter) {
        return new Result(new CommonException(ExceptionEnum.HYSTRIX));
    }

    @Override
    public Result listByPage(Parameter parameter) {
        return new Result(new CommonException(ExceptionEnum.HYSTRIX));
    }
}
